<div class="hero-unit">
    <h4 class="api_main_intro">购物车列表</h4>
    <div class="well">
        获取购物车列表
    </div>
    <h5>1.接口说明</h5>
    <div>获取用户购物车列表。</div>
    <h5>2.应用场景</h5>
    <h5>3.接口调用说明</h5>
    <h6>3.1 请求说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <td>url</td>
            <td>http://www.api.100hg.com/apiTools/router.verify</td>
        </tr>
        <tr>
            <td>格式</td>
            <td>JSON</td>
        </tr>
        <tr>
            <td>请求方式</td>
            <td>GET</td>
        </tr>
    </table>
    <h6>3.2 请求参数说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <th>名称</th>
            <th>类型</th>
            <th>是否必须</th>
            <th>描述</th>
        </tr>
        <tr>
            <td>method</td>
            <td>String</td>
            <td>是</td>
            <td>固定为：trade.cart.list</td>
        </tr>
        <tr>
            <td>ticket</td>
            <td>String</td>
            <td>否</td>
            <td>登录凭证，包含登录后的用户信息，登录时获取。未登录用户为空。</td>
        </tr>
    </table>
    <h6>3.3 返回参数说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <th>名称</th>
            <th>类型</th>
            <th>描述</th>
        </tr>
        <tr>
            <td>state</td>
            <td>Int</td>
            <td>状态：1成功，其他失败</td>
        </tr>
        <tr>
            <td>msg</td>
            <td>String</td>
            <td>错误信息</td>
        </tr>
        <tr>
            <td>result</td>
            <td>Object</td>
            <td>返回结果</td>
        </tr>
        <tr>
            <td>result.id</td>
            <td>Int</td>
            <td>商品ID</td>
        </tr>
        <tr>
            <td>result.num</td>
            <td>String</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>result.name</td>
            <td>String</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>result.price</td>
            <td>Double</td>
            <td>会员价</td>
        </tr>
        <tr>
            <td>result.price_vip</td>
            <td>Double</td>
            <td>vip价，商家登录后，才能获取</td>
        </tr>
        <tr>
            <td>result.count</td>
            <td>Int</td>
            <td>该商品在购物车中的数量，包含这次添加的</td>
        </tr>
        <tr>
            <td>result.wight</td>
            <td>Int</td>
            <td>单个商品重量(g)</td>
        </tr>
        <tr>
            <td>result.pictures</td>
            <td>Array</td>
            <td>商品图片列表： <br />
                result.pictures[0]为120X120 <br />
                result.pictures[1]为160X160 <br />
                result.pictures[2]为300X300
            </td>
        </tr>
    </table>
</div>